Pay-Per-Use Example License And Application

Developing Applications Using The SoftwareShield System > Example Licenses And Applications > Pay-Per-Use Example License And Application

## Pay-Per-Use Example License And Application

You can find this example program and license inside the folder \SoftwareShield\Pre-Compiled Examples\PayPerUse.

Note that the license project file ("PayPerUseExample.lpj") is provided for your reference but you should never distribute license project files (.lpj) with your actual applications.

The example license is configured to allow the software to run, but a locked function to not operate until you enter a valid Activation Code (indicating that you have "purchased" some number of uses of the locked function in the software). The example license tracks how many times the function has been used and will not permit unpaid uses of the function to operate. You can continually add uses to the program while ensuring the user does not attempt to add unauthorized uses by entering a valid Activation Code more than once.

Below are instructions on how to test the example program and add pay-per-use "credits". Note that if you have not yet purchased the SoftwareShield System, while you are testing the example, the "Demo Version" dialog may appear to remind you that the version of SoftwareShield you are using is a demo version. Simply dismiss this dialog and continue with the steps as noted. If you have already purchased the SoftwareShield System, but the "Demo Version" dialog continues to appear - be sure you have read and followed the instructions in the section: Unlocking The Demo Version Of SoftwareShield.

Note that you may wish to refer to the section How To Implement Pay Per Use for more detailed information.

### To Test The Application

Simply run the application and follow the instructions. We suggest that you use the simulate "purchase on-line" option and see how the communication with the web-activator works.